﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MWRCommunicationLibrary.ARS408
{
    public class Out_Cluster_0_Status : MWRData
    {
        public override int DefaultCanID
        {
            get
            {
                return 0x600;
            }
        }

        public override int Length
        {
            get
            {
                return 5;
            }
        }

        [ParamDecodor(0, 8)]
        public int NofClustersNear { get; set; }

        [ParamDecodor(8, 8)]
        public int NofClustersFar { get; set; }

        /// <summary>
        /// Measurement cycle counter (counting up since startup 
        /// of sensor and restarting at 0 when > 65535)
        /// </summary>
        [ParamDecodor(24, 16)]
        public int MeasCounter { get; set; }

        /// <summary>
        /// Cluster list CAN interface Version-No. . 
        /// It is always “1” till any Cluster Identifier will be changed 
        /// in any coming SW-update.
        /// </summary>
        [ParamDecodor(36, 4)]
        public int InterfaceVersion { get; set; }
    }
}
